package com.itcast.home_work.works.topic4;

public class Test {
    public static void main(String[] args) {
        Student a = new Student("小明", 19, Sex.BOY);
        Student b = new Student("小红", 18, Sex.BOY);
        Student c = new Student("小明", 19, Sex.BOY);


        System.out.println(a.toString());
        System.out.println(b.toString());
        System.out.println(c.toString());

        System.out.println(a.equals(b));
        System.out.println(a.equals(c));
    }
}
